package com.demo2do.fms.admin.dao.data;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.data.cost.DriverSalary;

/**
 * 
 * @author Chang Liu
 */
@Dao("hibernate")
public interface DriverSalaryDao {
    
    /**
     * 根据公司id和司机人数得到司机工资
     * 
     * @param orgId
     * @param driverCount
     * @return
     */
    @Query("FROM DriverSalary WHERE organization.id = :orgId AND driverCount = :driverCount AND disabled = false")
    public DriverSalary getDriverSalary(@Variable("orgId")Long orgId , @Variable("driverCount") Integer driverCount);
    
}
